import request from '@/utils/request2'

// 查询流程代理设置列表
export function listSetting(query) {
  return request({
    url: '/setting/setting/list',
    method: 'get',
    params: query
  })
}

// 查询流程代理设置详细
export function getSetting(id) {
  return request({
    url: '/setting/setting/' + id,
    method: 'get'
  })
}

// 新增流程代理设置
export function addSetting(data) {
  return request({
    url: '/setting/setting',
    method: 'post',
    data: data
  })
}

// 修改流程代理设置
export function updateSetting(data) {
  return request({
    headers: {
      'Content-Type': 'application/json'
    },
    url: '/setting/setting/edit',
    method: 'POST',
    data: JSON.stringify(data)
  })
}

// 删除流程代理设置
export function delSetting(id) {
  return request({
    url: '/setting/setting/remove/' + id,
    method: 'GET'
  })
}

// 导出流程代理设置
export function exportSetting(query) {
  return request({
    url: '/setting/setting/export',
    method: 'get',
    params: query
  })
}
